package com.liuhan.house.service;

import com.github.pagehelper.PageInfo;
import com.liuhan.house.pojo.House;
import com.liuhan.house.pojo.User;

import java.util.List;

public interface HouseService {

    PageInfo getHouseListByKeyWord(String keyword, String orderBy, int type, int pageNum, int pageSize );

    House selectByHouseId(Integer houseId);

    List<House> getNewHouse();

    int addHouse(House house,  User user);

    List<House> getByUserId(Integer userId);

    int deleteById(Integer houseId);
}
